package cn.iocoder.yudao.module.resource.dal.mysql.tag;

import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX;
import cn.iocoder.yudao.module.resource.dal.dataobject.tag.ResourceTagDO;
import org.apache.ibatis.annotations.Mapper;

/**
 * 资源标签 Mapper
 *
 * @author 芋道源码
 */
@Mapper
public interface ResourceTagMapper extends BaseMapperX<ResourceTagDO> {

    default ResourceTagDO selectByName(String name) {
        return selectOne(ResourceTagDO::getName, name);
    }

}
